package com.example.rental.service;

import com.example.rental.entity.Admin;
import com.example.rental.entity.User;
import com.example.rental.entity.condition.UserCondition;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    public List<User> selectAll();

    public PageInfo<User> searchUsers(UserCondition userCondition);

    public Boolean deleteUserByUserid(String userid);

    public void AddUser(User user);

    public void EditUser(User user);
    public List<Integer> searchUserByUsername(String username);
    public User userLogin(String phone , String password);
    public Integer newUser(String rphone,String rpassword);

    public User findByPhone(String phone);
}
